from tortoise import models,fields

class Order(models.Model):
    id = fields.IntField(pk=True, description="订单主键id")
    order_no = fields.CharField(max_length=255, null=False, description="订单号")
    user = fields.ForeignKeyField('models.User', related_name='orders', description="用户")